<template>
  <TCron @cronResult="cronResult"></TCron>
  <div class="w-full mt-[20px]">最终表达式：{{ result }}</div>
</template>

<script setup lang="ts">
import { TCron } from '@twa/components'
import { ref } from 'vue';

const result = ref('')
const cronResult = (data: string) => {
  result.value = data
}
</script>